//---------------------------------------------------------------------------

#ifndef Z_VIPOLNENAH
#define Z_VIPOLNENAH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtonEdit.hpp"
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDBEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxSpinEdit.hpp"
#include "cxTextEdit.hpp"
#include "cxTimeEdit.hpp"
#include "DBCtrlsEh.hpp"
#include <ActnList.hpp>
#include <Buttons.hpp>
#include <DBCtrls.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <Mask.hpp>
#include <Menus.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
#include <DB.hpp>
//---------------------------------------------------------------------------
class TfrZ_VIPOLNENA : public TForm
{
__published:	// IDE-managed Components
	TcxGroupBox *gbNevipolnena;
	TLabel *lab2;
	TLabel *lab3;
	TLabel *lab4;
	TLabel *lab5;
	TLabel *lab1;
	TDBEdit *dbeKOD;
	TDBDateTimeEditEh *dtpDATA_POS;
	TcxDBTimeEdit *edTIME;
	TDBEdit *dbePRIM;
	TcxButton *btnSave;
	TcxButton *btnCancel;
	TDBEdit *dbeSUMMA;
	TGroupBox *grpVIP_JOB;
	TDBGrid *dbgrd1;
	TBitBtn *btnADD;
	TBitBtn *btnEdit;
	TBitBtn *btnDEL;
	TcxButtonEdit *dbeTIP_JOB;
	TEdit *edtKOD_TIP_JOB;
	TEdit *edtKOD_JOB;
	TcxButtonEdit *dbeJOB;
	TActionList *actlst1;
	TAction *actSave;
	TAction *actCancel;
	TIBCQuery *dsetVIP_JOB;
	TIBCDataSource *dsVIP_JOB;
	void __fastcall actCancelExecute(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dtpDATA_POSKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edTIMEKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeSUMMAKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbePRIMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall actSaveExecute(TObject *Sender);
	void __fastcall btnADDClick(TObject *Sender);
	void __fastcall dbeTIP_JOBPropertiesButtonClick(TObject *Sender,
          int AButtonIndex);
	void __fastcall dbeJOBPropertiesButtonClick(TObject *Sender, int AButtonIndex);
	void __fastcall btnEditClick(TObject *Sender);
	void __fastcall btnDELClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
int KOD_TIP_OLD,KOD_JOB_OLD,KOD_Z;
	__fastcall TfrZ_VIPOLNENA(TComponent* Owner);
	void __fastcall TfrZ_VIPOLNENA::VIP_JOB();
	void __fastcall TfrZ_VIPOLNENA::EDIT_JOB(int STAT);
	int __fastcall TfrZ_VIPOLNENA::KOL_JOB();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrZ_VIPOLNENA *frZ_VIPOLNENA;
//---------------------------------------------------------------------------
#endif
